<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/3
 * Time: 16:06
 */
namespace app\admin\model;
use think\Model;
class OrderAftersaleModel extends Model{

    /**
     * 获取中文订单状态
     * @param $order
     * @return mixed
     */
    function getOrderStatus($order){
        switch ($order['status']){
            case 1:
                $string = '审核中';
                break;
            case 2:
                $string = '审核通过';
                break;
            case 3:
                $string = '审核拒绝';
                break;
            case 4:
                $string = '用户寄回中';
                break;
            case 5:
                $string = '平台收货';
                break;
            case 6:
                $string = '已完成';
                break;
        }

        return $string;
    }
}